package com.brilliance.project.webapp.form;

import java.io.Serializable;

import com.brilliance.project.common.Constants;
import com.brilliance.project.common.tools.StringUtil;

public class BaseForm implements Serializable {

	/**
	 * 序列化版本
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * 用于标识画面的操作
	 */
	private String action_option = null;
	/** 用户分页的参数 start */
	// 当前页数
	private String curPageNo = "1";
	// 总页数
	private String total = "0";
	// 总笔数
	private String totalRecord = "0";
	// 从第几笔数据开始
	private int startCount = 0;
	// 每页显示多少笔数据
	private int countPerPage = Constants.DEFAULT_MAX_PAGE_RECORD;
	// 是否第一次进入查询画面
	private String isFirstQuery = "";
	private int number = 0;

	/** 用户分页的参数 end */

	public String getAction_option() {
		return action_option;
	}

	public void setAction_option(String action_option) {
		this.action_option = action_option;
	}

	public String getCurPageNo() {
		return curPageNo;
	}

	public int getCurPageNo2Int() {
		if (StringUtil.isNull(curPageNo)) {
			return 1;
		} else {
			return Integer.parseInt(curPageNo);
		}
	}

	public void setCurPageNo(String curPageNo) {
		this.curPageNo = curPageNo;
	}

	public String getTotal() {
		return total;
	}

	public void setTotal(String total) {
		this.total = total;
	}

	public String getTotalRecord() {
		return totalRecord;
	}

	public void setTotalRecord(String totalRecord) {
		this.totalRecord = totalRecord;
	}

	public String getIsFirstQuery() {
		return isFirstQuery;
	}

	public void setIsFirstQuery(String isFirstQuery) {
		this.isFirstQuery = isFirstQuery;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public int getCountPerPage() {
		return countPerPage;
	}

	public void setCountPerPage(int countPerPage) {
		this.countPerPage = countPerPage;
	}

	public int getStartCount() {
		return startCount;
	}

	public void setStartCount(int startCount) {
		this.startCount = startCount;
	}

}
